package com.mark.imagedemo.utils;

import java.io.File;
import java.io.IOException;

/**
 * 创建文件的工具类
 *
 * @author Markcc
 * @date 2018/11/29-9:12
 * @email markerccc@163.com
 */
public class CreateFileUtil {

    public static boolean createFile(String filePath, String fileName) throws IOException {
        Boolean newFile = null;
        File file = new File(filePath, fileName);
        if (!file.exists()) {
            newFile = file.createNewFile();
        }
        return newFile;
    }
}
